package org.proxywars.engine.rts.attributes;

import java.util.HashMap;
import java.util.Map;

import org.proxywars.engine.rts.IAttribute;
import org.proxywars.engine.rts.IAttributed;

public class Attributed implements IAttributed {

	private Map<String, IAttribute> attributes = new HashMap<String, IAttribute>();

	@Override
	public IAttribute getAttribute(String name) {
		return attributes.get(name);
	}

	@Override
	public void setAttribute(IAttribute value) {
		attributes.put(value.getID(), value);
	}

	@Override
	public Map<String,IAttribute> getAttributes() {
		return attributes;
	}
}
